from math import sqrt
num=eval(input("请输入评委人数:"))
if num>2:
    scores=[]
    while len(scores)<num:
        score=eval(input("请输入评委评分:"))
        if 0<score<100:
            scores.append(score)
        else:
            print("每个分数都介于0~100")
    print(scores)
scores.sort()
print(scores)
del(scores[0])
del(scores[-1])
print(scores)
s=0.0
for i in scores:
    s=s+i
    d=s/len(scores)
print("平均分:{:.2f}".format(d))
    
